All Questions
12 questions
0votes
2answers
24views
create unique folder on startup with rpi cam
I have a pi cam on a pi zero that needs to run for the whole duration of being on. this pi camera module is being used in stratospheric launch and during our last one we were able to get videos back, ...
0votes
0answers
44views
How to delay/pause/sleep on boot screen?
I'm using raspberry pi5 with debian bookworm. I created a bash script and execute it on bootscreen. The script has 100 seconds delay in it but no effect in boot screen. The OS starts like there were ...
0votes
2answers
144views
Script to execute a task when certain TCP traffic appears (Raspberry Pi OS Bookworm)
I am using a Raspberry Pi as a Wifi bridge in my kitchen at home to bring network connectivity to a device that only has ethernet. I used a Will Haley guide and it works great. That part is solved ...
0votes
0answers
51views
Is this a legitimate ping test?
I've been trying to troubleshoot an occasional, but persistent, loss of connectivity and concocted this ping test. It saves the date of the failure to a file: #!/bin/bash if ! ping -c 1 google.com &...
-1votes
1answer
1kviews
How to create filenames with incremental numeric suffix
I'm writing a shell script that automatically starts two scripts in order to record data for a research project I'm working on, and then when they are ended, it automatically creates a directory for ...
0votes
1answer
1kviews
Full Bash script on creating txt file, directory, copy file, display info
Im still very new to codeing and Im still learning the basics and would love some help with explanation to learn what to do. Im stuck on this matter atm: Bash script to create a file with text inside ...
1vote
1answer
404views
unable to run bash script from bash script
I've created a script that has to be executed on boot and has to run another script (which sets some variables) before executing other commands. After writing the script, I've successfully executed ...
2votes
1answer
2kviews
How to run python script as non-root user on startup
I have written the following script which is supposed to change directory on startup and then run the script as pi user (on raspberry pi): #!/bin/bash echo 'raspberry' | sudo su - pi -c 'cd /home/pi/...
1vote
1answer
2kviews
Extracting data from files in multiple directories
I am new to perl and I am trying to create a perl script (or bash script) which can extract the word "Hello World" from files with .txt extension in multiple directories. To make it more clear, ...
2votes
1answer
286views
Can I check if create_ap works?
I am currently using the script create_ap to emit a Wifi Access Point (WAP) using my Raspberry Pi, which is running Raspbian. How can I check if the AP is up and running using a bash script? For your ...
2votes
1answer
336views
Raspberry Pi to Computer - Scripted File Transfer and Deletion
This is my first ever Bash script and I've done the best I could to find most of the answers on my own, but I have finally come to a road block. This script seems to (mostly) work, but I am not ...
9votes
3answers
4kviews
Optimizing a `while` loop
I have created a mini script to reboot my Raspberry Pi upon the push of a button. The script simply uses wiringPi (gpio command) to set pin 0 (pin 17 in Raspberry Pi standard numbering order) to input,...